format reverse Source(s) shell history git log --format=%H --reverse <commit hash>..HEAD > commits.txt